<!DOCTYPE html>
<%@ page language="java" pageEncoding="UTF-8"%>
<html>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core"
	prefix="c"%>

	<head>
		<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"
	prefix="fmt"%>

		<jsp:include page="/head.jsp" />
	</head>

<body>
		<c:import url="/header.do"/>
		<ol class="breadcrumb">
			<li>
				<a href="./">首页</a>
			</li>
			<li>
				<a href="news-${newsClass.newsClassId }-1.html">${newsClass.newsClassName }</a>
			</li>
			<li class="active">文章列表</li>
		</ol>

		<table class="table table-striped table-hover">

			<tbody>
				<c:forEach items="${p.list }" var="news" varStatus="s">
					<tr>
						<td style="text-align: center; width: 3em;" class="text-center">${s.count }</td>
						<td>
							<a href="/news-show-${news.newsId }.html" target="_blank">${news.newsTitle }</a>
						</td>
						<td style="text-align: center; width: 20em;" class="text-center">${news.newsWorker }</td>
						<td style="text-align: center; width: 10em;" class="text-center">
							<fmt:formatDate value="${news.newsTime }" pattern="yyyy-MM-dd HH:mm" />
						</td>

					</tr>
				</c:forEach>

			</tbody>
		</table>
		<c:if test="${not empty p }">

			<div class="text-center">
				<ul class="pagination">
					<li>
						<a href="/news-${newsClass.newsClassId }-1.html" aria-label="Previous"><span aria-hidden="true">«</span></a>
					</li>
					<c:forEach items="${p.navigatepageNums }" var="i">
						<li class="${i==p.pageNum?'active':'' }">
							<a href="/news-${newsClass.newsClassId }-${i}.html">${i }</a></li>
				</c:forEach>
				<li><a href="/news-${newsClass.newsClassId }-${p.pages}.html " aria-label="Next "><span
						aria-hidden="true ">»</span></a></li>
			</ul>
		</div>
	</c:if>
	<jsp:include page="/footer.jsp " />
</body>
</html>